package com.escool.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.escool.dao.CatEventoDAO;
import com.escool.dao.EmpRolDAO;

import com.escool.model.TbSedePersonalHasRol;

@Service
public class EmpRolServiceImpl implements EmpRolService{
@Autowired
EmpRolDAO catTipoCobroDAO;

@Transactional
public void addTbSedePersonalHasRol(TbSedePersonalHasRol TbSedePersonalHasRol) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.addTbSedePersonalHasRol(TbSedePersonalHasRol);
}

@Transactional
public void editTbSedePersonalHasRol(TbSedePersonalHasRol TbSedePersonalHasRol) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.editTbSedePersonalHasRol(TbSedePersonalHasRol);
}

@Transactional
public void delTbSedePersonalHasRol(int id) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.delTbSedePersonalHasRol(id);
}

@Transactional
public List<TbSedePersonalHasRol> listTbSedePersonalHasRol(int id) {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.listTbSedePersonalHasRol(id);
}

@Transactional
public TbSedePersonalHasRol findTbSedePersonalHasRol(int id) {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.findTbSedePersonalHasRol(id);
}

}
